| lcPaint_BrushCreate | Home |
|
HANDLE lcPaint_BrushCreate ( HANDLE hLcWnd, int Id, COLORREF Color, int Pattern, int Alpha ); |
| hLcWnd | |||||||||||||||||
| Handle to LiteCAD graphics window. | |||||||||||||||||
| Id | |||||||||||||||||
| Brush Identifier. | |||||||||||||||||
| Color | |||||||||||||||||
| Filling color (COLORREF type). | |||||||||||||||||
| Pattern | |||||||||||||||||
Can be one of the following values:
| |||||||||||||||||
| Alpha | |||||||||||||||||
| Color transparency value (1-255). Transparent filling is possible only for pattern LC_FILL_SOLID. | |||||||||||||||||
|
Handle to the created brush. If the function fails, the return value is NULL. |
| In order to enable color transparency (alhpa blending), you have to set property LC_PROP_WND_ALPHABLEND to TRUE . |
| lcPaint_BrushSelect, lcPaint_BrushSelectID |